/**
 * PO of a sms
 */
package cn.penciltim.smstoexcel;

/**
 * @author penciltim
 * 
 */
public class Sms {
	private String sender;
	private String reciever;
	private String time;
	private String content;

	public Sms() {
		super();
	}

	public Sms(String sender, String time, String content) {
		super();
		this.sender = sender;
		this.time = time;
		this.content = content;
	}

	public Sms(String sender, String reciever, String time, String content) {
		super();
		this.sender = sender;
		this.reciever = reciever;
		this.time = time;
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public String getReciever() {
		return reciever;
	}

	public String getSender() {
		return sender;
	}

	public String getTime() {
		return time;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setReciever(String reciever) {
		this.reciever = reciever;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public void setTime(String time) {
		this.time = time;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		if (sender != null)
			sb.append("From " + sender);
		if (reciever != null)
			sb.append(", to " + reciever);
		if (time != null)
			sb.append(", " + time);
		if (content != null)
			sb.append("\n" + content);
		return sb.toString();
	}

}
